// 实训申请
import request from '../request'

const Api = {
  pageTac: '/api/sys/tac/page',
  subscribe: '/api/sys/tac/subscribe',
  subscribeEquiment: '/api/sys/tac/subscribeEquiment',
  subscribeConsumable: '/api/sys/tac/subscribeConsumable',
  applyList: '/api/sys/tac/applyList',
  applyList_equiment: '/api/sys/tac/applyList_equiment',
}

/** 预约列表 */
export const pageTac = data => {
  return request.request({
    url: Api.pageTac,
    params: data,
    method: 'GET'
  })
}/** 实验室预约 */
export const subscribe = data => {
  return request.request({
    url: Api.subscribe,
    params: data,
    method: 'GET'
  })
}
/** 实验室预约-设备 */
export const subscribeEquiment = data => {
  return request.request({
    url: Api.subscribeEquiment,
    params: data,
    method: 'GET'
  })
}
/** 实验室预约-耗材 */
export const subscribeConsumable = data => {
  return request.request({
    url: Api.subscribeConsumable,
    params: data,
    method: 'GET'
  })
}
/** 实验室预约 */
export const applyList = data => {
  return request.request({
    url: Api.applyList,
    params: data,
    method: 'GET'
  })
}
/** 实验室预约列表-根据实验室ID以及当前登录用户查询 */
export const applyList_equiment = data => {
  return request.request({
    url: Api.applyList_equiment,
    params: data,
    method: 'GET'
  })
}
